package vampirism.core.shared;

import java.util.ArrayList;
import java.util.List;

/**
 * Contains all the tiles of the specific biome
 * @author PC
 *
 */
public class Biome {
	public short num;
	public List<Tile> tiles = new ArrayList<Tile>();
	
	public short npcCount;
	public short npcCountMax;
	
	public Long lastCreateTime;
	public Long respawnTime;
	
	public Biome(short biomeNum){
		this.num = biomeNum;
		this.lastCreateTime = System.currentTimeMillis();
		this.respawnTime = new Long((biomeNum+1)*400);//Stronger monsters respawn more slowly
	}
	
	public void setNpcCount(){
		npcCount = 0;
		npcCountMax = (short)(tiles.size() / 50); 
		
		if(num!=0 && num!=1 && num!=2 && num!=3){
			npcCountMax = 0;
		}
	}
}
